<?php
require_once 'LoginController.php';
require_once 'EditController.php';

class MasterController {

	private $l_controller;
	private $e_controller;

	function __construct() {
		$this -> l_controller = new LoginController();
		$this -> e_controller = new EditController();
	}

	public function getContent() {
		$isLoggedIn = $this -> l_controller -> isLoggedIn();
		if ($isLoggedIn) {
			return $this -> e_controller -> getContent();
		} else {
			return $this -> l_controller -> getContent();
		}
	}

}
